//获取md5

import CryptoJS from "crypto-js";
import axios from 'axios';

import path, { dirname } from 'path';
import { fileURLToPath } from 'url';

export const md5 = (str) => {
  return CryptoJS.MD5(str).toString()
}

export const urlGet = async (url, params) => {
  return await axios.get(url, { params: params })
}

export const urlPost = async (url, data) => {
  return await axios.post(url, data)
}

export const getRunTime = () => {
  return path.resolve("src");
}


